package cn.hy.mapper;

import cn.hy.entity.SecKillGoods;
import cn.hy.entity.SecKillGoodsExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SecKillGoodsMapper {
    long countByExample(SecKillGoodsExample example);

    int deleteByExample(SecKillGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SecKillGoods row);

    int insertSelective(SecKillGoods row);

    List<SecKillGoods> selectByExample(SecKillGoodsExample example);

    SecKillGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") SecKillGoods row, @Param("example") SecKillGoodsExample example);

    int updateByExample(@Param("row") SecKillGoods row, @Param("example") SecKillGoodsExample example);

    int updateByPrimaryKeySelective(SecKillGoods row);

    int updateByPrimaryKey(SecKillGoods row);


    int reduceStock(@Param("goodsId") Long goodsId);


}